package com.xdqzy.baseline.common.model;

import com.xdqzy.baseline.common.constant.LoginRole;
import lombok.Data;

/**
 * @Title: 会话对象
 * @ClassName: com.xdqzy.baseline.common.model.UserSessionModel.java
 * @Description:
 *
 * @author: winter
 * @date:  2020-10-24 21:02
 * @version V1.0
 */
@Data
public class UserSessionModel {

    private String userId;
    /**
     * 登录身份
     */
    private LoginRole loginRole;

    private String name;

    private String username;

    public UserSessionModel(String userId, LoginRole loginRole, String name, String username) {
        this.userId = userId;
        this.loginRole = loginRole;
        this.name = name;
        this.username = username;
    }

    public UserSessionModel() {
    }
}
